﻿Imports System.Runtime.CompilerServices

Namespace Global.Microsoft.Xna.Framework.Graphics

    Public Module Extension

        ''' <summary>
        ''' Scale the given image to the given size.
        ''' aspectRatio = False for maintain the contant aspect ratio.
        ''' </summary>
        ''' <param name="Me"></param>
        ''' <param name="width"></param>
        ''' <param name="height"></param>
        ''' <param name="aspectRatio"></param>
        ''' <returns></returns>
        ''' <remarks></remarks>
        <Extension()> _
        Public Function Scale(ByVal [Me] As Texture2D, ByVal width As Integer, ByVal height As Integer, Optional ByVal aspectRatio As Boolean = False) As Texture2D
            Return Runa.Foundation.Algorithm.Image.Scale([Me], width, height, aspectRatio)
        End Function

    End Module

End Namespace